/**
 * Element widget creator.
 * 
 * Implements a tag element. Default tag "div".
 */

function ElementWidget(options) {
	if(!options) options = {};
	if(!options.id) options.id = Widget.uid();
	if(!options.tag) options.tag = "div";

	var that = Widget(options);
	
	that.getHtml = function() {
		return sprintf('<%s id="%s"></%s>', options.tag, options.id, options.tag);
	};
	
	that.html = function(html) {
		this.getContainer().html(html);
	};
	
	return that;
}
